module.exports = function(window, document) {
	var apivm = require('../../common/avm.min')(window, document);
	var avm = apivm;
	var api = apivm.api;
	var Component = apivm.Component;
	var $ = apivm.$;
	(function() {
	var Index = /*@__PURE__*/ (function(Component) {
		function Index(props) {
			Component.call(this, props);
			this.data = {
				msg: "helloworld",
				isVip: false,
				user: {
					name: "老陈",
					age: "18"
				},

				idName: "box",
				list: [1, 2, 3, 4]
			};
		}

		if (Component) Index.__proto__ = Component;
		Index.prototype = Object.create(Component && Component.prototype);
		Index.prototype.constructor = Index;
		Index.prototype.apiready = function() {};
		Index.prototype.render = function() {
			return apivm.h(
				"view",
				{class: "page"},
				apivm.h("h1", null, this.data.msg),
				apivm.h("h1", null, this.data.isVip ? "VIP用户你好" : "充值会让你更强大！"),
				apivm.h("h1", null, this.data.user.name, ",年龄是", this.data.user["age"]),
				apivm.h("view", {
					id: this.data.idName,
					class: this.data.idName,
					id: "{idName}",
					class: "idName"
				}),
				apivm.h("h1", null, this.data.list)
			);
		};

		return Index;
	})(Component);
	apivm.define("index", Index);
	apivm.render(apivm.h("index", null), "body");
})();

	window['createApp'] = function() {
		apivm.$_start();
	}
	return avm;
}